/**
 * 百人牛牛当前在线玩家界面
 * @author 袁安
 *
 */
class P100onlinePlayerView extends how.module.Scene
{
    public labUserCount: eui.Label;
    public scrollUserList: eui.Scroller;
    public lstUserList: eui.List;

    public constructor()
    {
        super();
        this.skinName = "P100onlinePlayerSkin"
    }

    public get resourceList(): Array<string> 
    {
        return ["public", "p100Game"];
    }

    public fillUserList(data: eui.ArrayCollection): void
    {
        this.lstUserList.dataProvider = data;
        this.labUserCount.text = data.length.toString();
    }
}